package Game;

import java.awt.Image;

public class Duvida extends Item
{
	static Image animationUp;
	
	public Duvida(int x, int y, int w, int h)
	{
		super(x, y, w, h);
		
		System.out.println("Pegou " + this.getClass().toString());
		
		animationUp = LoadImage("/Images/animation_question.png");
		
		this.animation = new Animation(animationUp, 1, 4, 2, x, y, w, h);
		
		this.animationActive = true;
		
		HUD.AddDuvida(1);
	}
	
	public void Update()
	{
		if(visible)
		{
			super.Update();
			
			if(animation.endedOnce)
			{				
				animationActive = false;
				
				System.out.println("Pegou Duvida");
				
				visible = false;
			}
		}
	}
}